package com.system.arrangement.feign;

import com.system.arrangement.been.ConsultationRoom;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author 林
 */
@FeignClient(value = "consultationRoom-service", path = "/consultationRoom")
public interface ConsultationRoomFeign {
    @PostMapping("/save")
     boolean saveHandle( ConsultationRoom consultationRoom);

    @DeleteMapping("/del/{id}")
     boolean deleteHandle(@PathVariable("id") int id);

    @PutMapping("/update")
     boolean updateHandle( ConsultationRoom consultationRoom);

    @GetMapping("/get/{id}")
     ConsultationRoom getHandle(@PathVariable("id") int id);

    @GetMapping("/get/list")
     List<ConsultationRoom> listHandle();
}
